const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const CountrySchema = new Schema({
	country:{
		type:String,
		required:true
	},
	lanX:{
		type:String
	},
	lanY:{
		type:String
	},
	city : [{
		type : Schema.Types.ObjectId,
		ref : 'city'
	}],
	date:{  //日期
		type:Date,
		default:Date.now()
	}
});
module.exports = Country = mongoose.model('country',CountrySchema);
